package org.example.leetcode.core.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.leetcode.core.domain.DailyQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.leetcode.core.dto.DailyQuestionVo;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhc
 * @since 2024-04-13
 */
@Mapper
public interface DailyQuestionMapper extends BaseMapper<DailyQuestion> {
    public Set<DailyQuestion> getCurrentMonthQuestion(@Param("dateTime")String dateTime);
    public DailyQuestion getSpecificDateQuestion(@Param("dateTime")String dateTime);
    public List<DailyQuestionVo> getMyDailyQuestionLog(@Param("dateTime")String dateTime, @Param("phone") String phone);
    public List<DailyQuestionVo> getMyDailyQuestionLogWithoutLogin(@Param("dateTime")String dateTime);

}
